package com.muyu.cloud.commodity.service.imp;

import com.muyu.cloud.commodity.domain.model.SpecValue;
import com.muyu.cloud.commodity.mapper.SpecValueMapper;
import com.muyu.cloud.commodity.service.SpecValueService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SpecValueServiceImpl implements SpecValueService {

    @Resource
    private SpecValueMapper specValueMapper;
    /**
     * 查询规格值
     * @param groupId
     * @return
     */
    @Override
    public List<SpecValue> listByGroupId(Long groupId) {
        return specValueMapper.listByGroupId(groupId);
    }

    /**
     * 按分类查询规格值
     * @param categoryId
     * @return
     */
    @Override
    public List<SpecValue> listByCategoryId(Long categoryId) {
        return specValueMapper.listByCategoryId(categoryId);
    }
}


